body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
}
header {
    background-color: #ffffff;
}
.top-bar {
    background-color: #000000;
    color: #ffffff;
    text-align:right;
    padding: 10px 70px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.contact-info span {
    margin-left: 35px;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
      float: left;
      position: relative;
      top: -20px;
}
.nav-links {
    list-style-type: none;
    display: flex;
    gap: 20px;
    padding: 0;
}
.nav-links li {
    display: inline-block;
    position: relative;
}
.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    display: block;
}
.dropbtn {
    cursor: pointer;
    font-size: large;
}

.dropdown-content {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #d2e3ee;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    transform: translateX(-20px);
    transition: visibility 0s, opacity 0.5s ease, transform 0.5s ease;
}

.dropdown-content a {
    color: rgb(1, 0, 26);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
.show {
    display: block;
}

.contact-button {
    background-color: #22126d;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 150px;
    height: 50px;
    border-radius: 8px;
    margin-left: 90px;
    font-weight: bold;
    position: relative;
    top: -15px;
}

.contact-button:hover {
    background-color: #2d1985f1;
}
.container {
    position: relative;
    text-align: center;
    padding: 20px;
    margin: 0 auto;
}
.background-image {
    background-image: url('https://media.istockphoto.com/id/1408857410/photo/shop-selling-coffins-and-funeral-wreaths.jpg?s=612x612&w=0&k=20&c=m1fSSXZqvlyJjmPdU1Ui-CbTDjZdSDccJ3os3_3vij0=');
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-attachment: fixed;
}
.title {
    font-size: 2.5rem;
    color: #fffdfd;
    margin-top: 20px;
}
.subtitle {
    font-size: 4.8rem;
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
}
.service-button {
    background-color: #0074d9;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    }

.service-button:hover {
    background-color: #22126d;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3); /* Adjust the background color and opacity as needed */
}

.cont-image #image1 {
    width: 850px;
    padding: 10px 10px;
    margin-left: 130px;
    position: relative;
    top: -80px;
    z-index: 1;
}

.cont-image2 img{
    margin-left: 150px;
}
.cont-image2 h1{
margin-left: 430px;
position: relative;
top: -240px;
font-size: 58px;
font-family: 'Times New Roman';
width: 420px;
z-index: 1;
}

.box{
    display: flex;
    justify-content: flex-end; 
    position: relative;
    top: -300px;
}
.cont-image2-text {
background-color:rgb(206, 226, 238);
padding: 20px;
max-width: 400px;
margin-right: 60px;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
font-family: 'Times New Roman', Times, serif;
}
.cont-image2-text p {
    margin: 0 0 20px 0;
    font-size: 23px;
    line-height: 2.6rem;
    color: #333;
}
.services {
    align-items: center;
    position: relative;
    top: -250px;
}
.services h1 {
    font-size: 4rem;
    text-align: center;
}
.service-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Adjusts the space between images */
}

.image-container {
    position: relative;
    flex: 0 0 calc(33.333% - 20px); 
    max-width: 100%; 
    height: 260px; 
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; }

.image-label {
    position: absolute;
    top: 10px; 
    left: 50%;
    transform: translateX(-50%); /* Centers the label horizontally */
    /*background-color: rgba(48, 46, 46, 0.521);*/
    color: rgb(189, 174, 9);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bolder;
    text-align: center;
    text-transform: uppercase;
}
.servicebtn {
    display: inline;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background-color: black;
    border: 2px double whitesmoke;
    border-radius: 2px; 
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 500px;

}

.servicebtn:hover {
    background-color: #e6e0e0;
    color: black; 
}

 .container-of-service {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 100px;
    margin-top: -180px;
}   

.boxservice {
    position: relative;
    width: calc(50% - 3px); /* Two columns */
    margin-bottom: 5px;
}
.boxservice img {
    width: 86%;
    height: 400px;
    display: block;
}
.boxoverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 86%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 2;
    transition: opacity 0.3s ease;
}

.boxservice:hover .boxoverlay {
    opacity: 1;
}
.boxtext {
    text-align: center;
    padding: 20px;
}

.boxtext h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.boxtext p {
    margin-bottom: 20px;
}

.boxtext a {
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 10px 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.boxtext a:hover {
    background: white;
    color: black;
}
#stuborn {
    margin-left: -85px;
}
.affliations {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: center;
}
.affliates {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    max-width: 700px;
    margin-left: 280px;
}
.affliates img{
    justify-items: center;
    display: flex;
    transition: transform 0.3s ease;
}
.affliates img:hover {
    transform: rotate(15deg) !important;
}
.about-us-container {
    position: relative;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
   display: flex;
}
.about-us-background {
    background-image: url('https://media.istockphoto.com/id/1560274224/vector/watercolor-frame-of-white-calla-lily-freesia-flowers-and-eucalipt-hand-drawn-floral.jpg?s=612x612&w=0&k=20&c=SpiNUExJLUJWbfphAFXuConkhVQWlIGvFxHKqUAxDyg=');
    height: 630px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.about-contact-info {
    font-size: larger;
    width: 500px;
    color: #fffdfd;
    margin-top: 20px;
    margin-left: -50px;
    background-color: rgba(0, 0, 0, 0.9);
}
.get-in-touch{
    font-size: larger;
    font-weight: bold;
    color: #080808;
    margin-top: 10px;
}
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    /*background-color: rgba(0, 0, 0, 0.3);*/
}
.get-in-touch button {
    color: #161616;
    background-color: none;
     border: 5px double black;
     font-size: 20px;
     font-family: 'Times New Roman', Times, serif;
}
.get-in-touch h2{
    font-size: 2rem;
    text-transform: uppercase;
}
.contact-info h2{
    font-size: 2.9rem;
}
.working-hours{
    text-align: center;
    background-color: #857cfc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 15px auto;
}
.working-hours h2{
    color: #000000;
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.working-hours select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 3px dashed #636103;}
.working-hours select option{
    color: #440000;
}
.working-hours p{
    font-size: 20px;
    color: #000000;
}
.map-container iframe {
	width:100%;
    	height: 400px;
    	border: dashed;
    	border-radius: 8px;
}
	
.map-container {
    	display: flex;
    	justify-content: center;
    	width: 100%;
        border-radius: 10px;
}

.footer-container {
    background-color: #030303;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: scroll;
    height: 200px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 270px;
    line-height: 2.2rem;
}

.footer-content p {
    margin: 10px 0;
    font-size: 18px;
}
@keyframes rotateIn {
    from {
        transform: rotate(-200deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

#rotate-in {
    animation: rotateIn 1s ease-in-out;
}


